<include file="Public:header"/>
<!-- form 样式 -->
<link href="__STATIC__/form/style.css" rel='stylesheet' type='text/css' />
<link href="__STATIC__/form/font-awesome.css" rel="stylesheet"> 

<link href="__STATIC__/form/animate.css" rel="stylesheet" type="text/css" media="all">
<link href="__STATIC__/form/add.css" rel="stylesheet" type="text/css" media="all">
<!-- 图片放大插件 -->
<link rel="stylesheet" href="__STATIC__/components/pic/css/lrtk.css" />
<!-- <script src="__STATIC__/components/pic/js/jquery.min.js"></script> -->
<script src="__STATIC__/components/pic/js/jquery.imgbox.pack.js"></script>
<style type="text/css">
    th{
        text-align: center;
    }
.area{
	margin: 0px;
	width: 764px;
	height: 114px;
}
#preview{
    width: 100%;
    height: 100%;
}
</style>


<div class="form-grids row widget-shadow" data-example-id="basic-forms"> 
	<div class="form-title">
		<h4>运输信息</h4>
	</div>
	<div class="form-body">
		
        
            <label for="exampleInputEmail1">楼盘名称</label> <input type="text"  class="form-control" id="exampleInputEmail1" readonly value='{$activityInfo["name"]}' > 
            <br/>
            
            <label for="exampleInputEmail1">项目名称</label> <input type="text"  class="form-control" id="exampleInputEmail1" readonly value='{$activityInfo["aname"]}' > 
            <br/>
            <label for="exampleInputEmail1">姓名</label> <input type="text"  class="form-control" id="exampleInputEmail1" readonly value='{$activityInfo["truename"]}' > 
            <br/>
            <label for="exampleInputEmail1">活动时间</label> <input type="text" class="form-control" id="exampleInputEmail1" readonly value='{$activityInfo["create_time"]}' > 
            <br/>
            <label for="exampleInputEmail1">状态</label> <input type="text" class="form-control" id="exampleInputEmail1" readonly value='<?php echo $activityInfo['finish']==0?"执行":"完成";?>' > 
            <br/>
        

	
		
		

			
		<form action='' method='post'enctype="multipart/form-data" > 
			<div class="form-group">
				<label for="exampleInputFile1">进入场地</label>
				<div class="ipt image_container">
                    <if condition="$activityInfo['come_img'] eq null">
                        <img src="__STATIC__/vote_042.png" alt="" id="preview">
                        <input type="file" name='logo1' id="exampleInputFile1" class="file_upload">
                    <else/>
                    	<a class="photo-wrap" href="{$activityInfo['come_img']}" target= "_blank">
                        	<img src="{$activityInfo['come_img']}" alt="" id="preview">
                    	</a>
                    </if>
					
				</div>
			</div>
			<if condition="$leave eq 1">
			<div class="form-group">
				<label for="exampleInputFile1">撤出场地</label>
				<div class="ipt image_container">
					<if condition="$activityInfo['leave_img'] eq null">
                        <img src="__STATIC__/vote_042.png" alt="" id="preview">
                        <input type="file" name='logo2' id="exampleInputFile1" class="file_upload">
                    <else/>
                    	<a class="photo-wrap" href="{$activityInfo['leave_img']}" target= "_blank">
                        	<img src="{$activityInfo['leave_img']}" alt="" id="preview">
                        </a>
                    </if>
					
				</div>
			</div>
			</if>
            <input type='hidden' class='roleid' value='{$roleid}'>
            <input type='hidden' class='actid' name='actid' value='{$activityInfo.id}'>
			<button type="submit" class="btn btn-primary">提交</button> 
			</div> 
		</form> 
	</div>
</div>

<script type="text/javascript">
	$('.file_upload').on('change',function(){
	    var mgObjPreview=$(this).siblings('img')[0];
	    var docObj=$(this)[0];
        mgObjPreview.src = window.URL.createObjectURL(docObj.files[0]);
	});

	<script type="text/javascript">
		$(document).ready(function() {

			$(".photo-wrap").imgbox({
				'speedIn'		: 0,
				'speedOut'		: 0,
				'alignment'		: 'center',
				'overlayShow'	: true,
				'allowMultiple'	: false
			});
		});
</script>
<include file="Public:footer"/>